It's a failure only if you don't get anything out of it, Thomas Edison said he knew 999 ways that a light bulb did not work; yet we have lights today.
"Take the Risk: Learning to Identify, Choose, and Live with Acceptable Risk". Book by Ben Carson and Gregg Lewis, 2008.