When property, the sale of which is indemnified, sells for more than enough to satisfy the execution or distress warrant under which it is taken, the surplus shall be paid by the officer into the court to the office whereof the indemnifying bond is required to be returned, or as such court may direct. Such court may make such order for the disposition thereof, either temporarily until the question as to the title of the property sold is determined, or absolutely, as in respect to the rights of those interested may seem to it proper.