The words "fail" and "failure" can have many connotations. There seem to be two schools of thought when it comes on the approach to understanding failure.
The first is failure means you didn't do whatever you set out to do and you never will. It's a period at the end of a sentence.
The second is its proof you're working towards a goal that's worth achieving.