Any surplus in excess of amounts necessary to pay principal, premium, if any, interest, costs, and arrearages on the rate reduction bonds, and other costs arising under the security agreement, shall be remitted to the debtor or to the pledgor or transferor.