Well, you could change how banks fail too.
When a bank fails, the owners would lose their investment. But the assets of the bank, its loans, could be put into a public corporation and shares distributed to the depositors in proportion to their deposit.
Then depositors could sell and get 80 cents on the dollar or whatever. Or the depositors can wait awhile and sell when the markets recover. They might even make more than the interest they were promised.
Such mortgages are fundamentally sound, so for most people the sensible thing is to wait. They can also sell some and keep most to get through their own short term cash flow needs.