If upon the sale the moneys received exceed the total of all amounts, including interest, penalties, and costs due the state, the board shall return the excess to the person liable for the amounts and obtain his or her receipt. If any person having an interest in or lien upon the property files with the board prior to the sale notice of his or her interest or lien, the board shall withhold any excess pending a determination of the rights of the respective parties to the excess moneys by a court of competent jurisdiction. If for any reason the receipt of the person liable for the amount is not available, the board shall deposit the excess moneys with the Controller, as trustee for the owner, subject to the order of the person liable for the amount, his or her heirs, successors, or assigns.