Ah, well...when things fall apart like that I try to stay as cool, calm, and collected as possible. Not that it always works perfectly, but goodness knows freaking out doesn't fix anything, even when it is the easy option. Then I try to come up with a way to repair the damage done, switch over to Plan B (C, D, etc.) if one already exists, or come up with something that should work...at least for the short-term. Kind of like putting a Band-Aid on a cut to staunch the blood flow.
As the saying goes, "man plans and God laughs." That said, praying for a bit of patience, wisdom, clarity, and a fresh perspective can never hurt. You just do your best to stop things from spinning out of control, then start making course corrections.
EggysGames
I pray to Bomtoons and he saves the day usually. So you'll have to be tough for yourself.
BoMToons
I will try Eggy.