(5) The proceeds of a disposal under subsection (4) shall be applied by the Comptroller first towards the cost of taking, keeping, and selling the property distrained upon, then towards the tax due and payable and, subject to section 57, the remainder of the proceeds, if any, shall be restored to the person liable to pay the tax.