Sometimes, when you’re forced to improvise you actually create something better than the primary option. Improvisation is innovation, and that’s the process that yields progress.
So it’s not the worst thing in the world when Plan A fails. That doesn’t mean you’ve failed.