The importance of failure in science