Sometimes things go wrong in your life and you get upset. (I know this is easier to say than do) But sometimes you need to take a deep breath and see what happens next. It really will always be okay. Even if it really really sucks in the moment, just accept it and move on.
Remember that not getting what you want is sometimes a wonderful stroke of luck.
The mind is stronger than we will ever understand and the universe is more giving than you will ever understand.