It's often said that no plan survives contact with the enemy. So ultimately, you have to have a plan not to make plans. Preparation is good, but it's never enough.
When you fail, you may be lucky enough to survive. If you do, you'll fail less next time.