Every failure in the lab teaches you something valuable—if you're paying attention.