I remember an interview with Edison on his many failures before finally inventing the light bulb. He was asked, "How do you feel about the 99 attempts that failed before finally making a working light bulb?" or something to that effect. He answered, " I never failed, it's just that making the light bulb was a 99-step process."
I failed a lot of times but I don't consider myself a failure, I just look at them as part of my learning process.
Thanks.