The lender (mortgagee) keeps as much as authorized to cover the
remaining loan, costs, fees and penalties under the mortgage and
turn over the remainder to the next secured lender, if any, or tax
authority with a lien, and so forth, until the only one left is the
mortgagor (borrower).