It all depends, the best thing to do will be to contact an experienced real estate agent or an attorney. You could buy extra time doing different actions, but it will depend on what is YOUR SITUATION at this moment.
You could also try to do a short sale and you might be able to not only stay at your house while this process is being done, but you could also be able to get some money for relocation assistance.
The most important is that you would need to hire somebody with experience in this field to assist you.
I would be happy to help you!