C.C.
We attempted to do a deed in lieu of foreclosure. Similar to you, we attempted a mortgage modification with no luck. The problem we ran into was that the bank wanted me to cash in my 401k, turn over all that money to them, and then they would take the deed in lieu of a foreclosure, HOWEVER they would still report the difference in between our mortgage and the value of the home, as a write-off. In other words, not only would we have lost our home AND my 401k, our credit would still be ruined due to the bank writing off nearly $200K against our loan. AND they could have come back after us for that money later in court. So we said, screw it, we're staying in the house until they foreclose. We saved the money we would have paid on the mortgage and were able to pay down some bills that we had incurred while trying to stay on top of our mortgage (we had fallen behind because my husband lost his job, and was only able to find a job where he made about 25% of what he had before).
So... just be prepared for the bank to balk at your offer of a deed in lieu of foreclosure. (Also, realize that the way the current laws are written they really have no incentive not to foreclose. They benefit financially from foreclosing on you, as they are then able to write it off as "bad debt." That's why banks are still making record profits despite all the foreclosures.)
Bottom line though, it has been 3 years since our home was foreclosed upon. We rented from a friend for 2 years, and now rent from a property management company. In a few months we will be eligible to buy again. During this time we have paid off all the debt we incurred since my husband lost his job, so we are back to being debt-free. It has actually not been as terrible as we thought it would be. It was definitely emotionally wrenching to lose our dream home, but at the end of the day... it was a business transaction, not some moral failure on our part. Life moves on.
I'm so sorry you are going through this. Rest assured, you will make it through this, as thousands of us have. It will be hard, but one day you will look back at this as an unpleasant memory, and it will not define you or your lives. You still have your family, and that is the important thing to hold onto. Hang in there!