All accrued interest and premiums received on the sale of bonds shall be placed in the fund to be used for the payment of principal of and interest on the bonds and the remainder of the proceeds of the bonds shall be placed in the treasury to the credit of the proper improvement fund and applied exclusively to the purposes for which the debt was incurred; provided, however, that when those purposes have been accomplished any moneys remaining in the improvement fund (a) shall be transferred to the fund to be used for the payment of principal of and interest on
the bonds, or (b) shall be placed in a fund to be used for the purchase of outstanding bonds of the district from time to time in the open market at the prices and in the manner, either at public or private sale or otherwise, as the board may determine. Bonds so purchased shall be canceled immediately.