I'm a lawyer.
If there is insurance, the insurance indemnity will be paid to the bank first. Insufficient, the owner pays the insufficient part.
If there is no insurance, the owner has the responsibility to return it.
In addition, the bank may require to pay off or increase the collateral in advance.
In short, the owner still has to pay it back. Moreover, banks can also ask for early repayment.