I think failure is nothing more than life's way of nudging you that you are off course. My attitude to failure is not attached to outcome but in not trying. It is liberating. Most people attach failure to something not working out or how people perceive you. This way it is about answering to yourself.
The difference between a beautifully made failure and a beautifully made hit is who you've got playing the leads.