Project Safety: How to prevent projects crashing-out & minimize the damage when then do?

On the path from strategy to success there will inevitably be casualties. Initiatives that struggle to gain traction, go off course, are retired early or even crash off the track. The question is: How to prevent projects crashing-out & minimize the damage when then do?