In both engineering and real life, you need to accept failure not as a bad thing but as an opportunity to learn and do better.