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 that person’s 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 thereto 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 Treasurer, as trustee for the owner, subject to the order of the person liable for the amount, or that person’s heirs, successors, or assigns.