It's helped you to fight with courage and confidence. Every morning when you awake always thank god that your conditions of life are not worse than others. As long as you can walk, feed yourself and free from intense pain. You ought to be the happiest person in the world. No matter what happen never forget that (pray) as long as you live. Never! Never! Never!!!!
You need to analyze the situation fearless and honestly. Then, figure out what was the worst that could probably happen as a result of this failure.
Reconcile yourself after you figuring out what was the worst that could possibly happen.
Devote your time and energy to trying to improve upon the worst which you had already accepted mentally