With every failure, every crisis, every difficult time, I say - What is this here to teach me? And as soon as you get the lesson, you get to move on. If you really get the lesson, you pass and you don't have to repeat the class.
My philosophy is that not only are you responsible for your life, but doing the best at this moment puts you in the best place for the next moment.