Don’t Let Your Victories Go To Your Head, Or Your Failures Go To Your Heart.
This is how I was raised.
You go through life, always try your best, and if along the way something blows up in your face...
...well, at least you've learned a valuable lesson. Then you move on.