If you are in contract you should be talking to your Agent or Lawyer
who is representing you.
Nothing prevents you from back in to your home.
But its unlikely that you can cancel the contract.
You likely can refuse to negotiate further with the bank as things progress
and eventually foreclose or do a loan modification.
It all depends on your circumstance.