Large part of my book talks about giving yourself the best shot of avoiding potentially dangerous situations, please have a look: A GUIDE TO STUNNING AERIAL IMAGERY – Where To Fly Drones
If a critical equipment failure occurs there isn't much we can do. Inspect your aircraft as best you can...