I look at that as an opportunity to build my character. It is sort of like when you work out your muscles by lifting weights. You learn more through failure than through success. But there is always two ways you can take failure: you can give up, or you can use it as an opportunity to grow, and carry on.
Whatever you do, do well. For when you go to the grave, there will be no work or planning or knowledge or wisdom. - Ecclesiastes 9:10