Life might not always seem fair. It has it's own twists, turns and detours. It is always full of surprises. Life will not always deliver your desired outcomes but, it's the way you bounce back from them, that makes you. You shouldn't sit there and feel sorry for yourself. You should get right back up on the horse. People encounter set backs all the time. That's just how life works. Life is just not possible without failing at it sometimes.
If life was easy, it would be boring. Focus on the bounce back. Focus on making yourself a better person. Focus on how you can change the outcome next time. If it's something you want, you will work hard for it. You have to bounce back and give it your all.
Just remember the harder you are set back, the higher you can bounce back. People want to see you fail and give up, but remember its all about the comeback.