The commissioner must, as soon as practicable after the receipt of the purchase money for the property sold by him or her, pay the same to the judge of probate or register or clerk, as the case may be, of the court ordering the sale, and such money must be retained and safely kept by such judge or register or clerk until the sale has been duly confirmed or vacated. If the sale is vacated, the purchase money must be, by such judge or register or clerk, returned to the purchaser. If the sale is confirmed, such money must be by such officer paid over to the foreign conservator entitled to receive the same, after deducting therefrom the costs and expenses attending the sale, including compensation to the commissioner in the amount of two and one-half percent upon the proceeds of such sale, but in no case more than $100.