It's easy to feel like a failure when facing foreclosure. Most of us grow up with big dreams and try to do our best at everything we do. The fact is, sometimes not everything goes the way we planned it. Especially when these things are out of our control.
Take for example, those of us who have ever lost a job because of a downsizing or a company going out of business. This has nothing to do with you as a person, ability, etc.. But it can definitely affect your ability to pay for the things you need, like your house. Does it mean you're a failure? Of course not!
It's important to keep in mind that life throws a few monkey wrenches at us every once in a while and most of the time they are only temporary. Keep your head up and continue to make good decisions and eventually it turns back around. I've dealt with many people who have foreclosed on their homes and are now back on their feet and doing great. It's hard to seperate emotion from logic when facing foreclosure but with upmost certainty I can tell you that making the logical decision to move on (especially if you can save your credit by selling to an investor before you are foreclosed on) is the smart thing to do.
Remember "We all must fail before we can succeed". Life is just a series of lessons often learned the hard way! Keep your chin up.