Learn From It
When the result is not what you expected, learn from it. When you get the result, you want, learn from that too. Every experience is a wonderful opportunity to learn.
Wisdom comes from learning the difficult lessons which experience teaches. With wisdom comes respect, authority and effectiveness. You pay a hefty price for wisdom, and yet what you get is even more valuable than what you paid.
It is indeed difficult to console yourself to "learning from this" when things fail to go your way. It is much easier to get angry, to get depressed, to complain or even to forget about the whole thing. However, when you do that, you end up paying the price without getting any value in return.
Whatever happens, let it increase your wisdom and, ultimately, your success. Whatever happens, get past the concerns at the moment and learn from it.