Aw man I feel that. It's a bummer you are there but it makes sense as to how it happened.
Personally, I started looking more at the odds or likelihood of things (even when everything seemingly is going right) and it helped keep me more in proper perspective. Beyond that, having other outlets has been clutch!