When it appears, during the term or in vacation, that the property is liable to loss or destruction, the court shall order it sold, free of the lien, by a peace officer, in the manner provided for the sale of personal property under execution, before judgment is rendered. The proceeds of sale shall be paid into court to be applied as directed in the judgment.