Even in recourse mortgages, banks tend to write off the remainder owed. Especially since it is cheap for them to offer to forgive the remainder to shorten the eviction process and prevent damage to the home. At least historically
Of course, if it's not your primary home, they don't need you to waive your rights to stay in the property.
Of course, if it's not your primary home, they don't need you to waive your rights to stay in the property.