Failure is human. Generally, we have a hard time to admit failure and to understand it as a chance to learn. Learn here about other perspectives or attitudes that might be helpful for you to adopt.