Do you know that lions only succeed in a quarter of their hunting attempts? This means, they fail in 75% of their attempts and succeed in only 25%. Despite this small percentage, they don't despair in their pursuit.
The main reason for this is not because of hunger as some might think, but it is the understanding of the “Law of Wasted Efforts” that have been instinctively built into animals, a law in which nature is governed.
Success is not to have a life free of pitfalls but success is to walk over your mistakes and go beyond every stage where your efforts were wasted, looking forward to the next stage.