How to Rescue a Failed Test Automation?

Tips on how to rescue failed test automation technically, and more importantly, address the subtle human factors