You did the right thing.
But it's time to move on, life is too short. Try to start again, like the Phoenix, from your ashes.
You can start a new life from what You think is a failure (it is not, because You didn't anything wrong!).
Maybe You can consider the idea of having a job in another field, maybe You should try something less stressing, and I'm saying this because I'm a developer too!
Obviously, at the beginning the money will be not too much, but why You shouldn't try?!
Let us know! :)