From the book It: How Churches and Leaders Can Get It and Keep It [note: I’m not necessarily recommending the book in this case — haven’t looked through it enough –, but this was a helpful quote I took a picture of when I was thumbing through it in a bookstore]:
Don’t internalize failure. Remember that failure is an event, not a person. When you do fail, allow yourself to feel the disappointment. That’s reality, and an important part of it. But don’t internalize disapproval. Just because you failed at something doesn’t mean your a failure. Shake it off. And try something again.