1. Do not let it foreclose. It will hurt your credit dearly.
2. Short sale still hurt your credit for 7 years, but way better than foreclosure. It's like cut a finger or an arm.
3. If your LG lost his job, I don't think you are qualified for the loan modification if he is the only one earns salary.
4. Stop pay the mortgage immediately, and then call the bank and explain your situation. The short sale takes as little as three months, or as long as two years. You can live inside the house legally during this time. Which bank is this? It really depending on the bank.
5. Talk with an experienced real estate agent. Some one can do the trick to slow down the process to let you stay there longer.
Well, where there is a will, there is a way. Good luck!