I don't know what the score is nowadays, but previously there was a deal considered by many as possibly the best, so as to move on.
IE giving you the best option of truly moving on.
Depending on your viewpoint, releasing the house entirely over to the spouse.
From there, no liability and...