Things happen to us every day. People enter our lives, people leave our lives. Accidents happen. Good fortune happens. The important thing to remember is that what happened and your story about what happened are two very different things. If you want to make your story that you failed, and be sad about it, that is your choice. If you want to make your story that you are in process, learning valuable lessons, and onto the next bit of greatness, that is your choice too.
Even if something awful happens, you can always make the choice to let it be a data point. It is just one thing that happened in a long, great life, and provided a chance for you to learn something great. What happened in the past is the past and it cannot be changed. Who you are going to be about it is always your choice, something you can change every single day if you would like.
You choose the story. And even better, when you choose the story, you get to choose the ending too.