When any county or municipality shall dispose of real property, capital improvements or personal property not acquired at a tax sale, having issued bonds to finance the purchase thereof, and at the time of such disposal any of said bonds are outstanding, the whole proceeds of such disposal or, so much thereof as shall be necessary shall be used for the liquidation of such bonds. Payment of such bonds may be made at or prior to maturity on cancellation.
N.J.S. § 40A:12-17