Foreclosure terminates all rights that the mortgagor has in the mortgaged property upon completion of due process through the courts.
Once a property is foreclosed the lender has no recourse to be compensated.
The rule is very complex suggests to check it out neither from a technical or value oriented perspective.