Think of failure before you start, and plan for it.
A couple of years ago I came across a video that changed the way I think about hard choices.