Thinking about failures as necessary trials