The total output of advice in this article are the last two lines:
> Very few people plan or prepare for what they’ll do and how they’ll act during those times. Those who do might well end up turning their worst day into their best.
My suggestion for not failing miserably when something goes wrong is to manage one's stress levels. A therapist once said to me "everyone has their breaking point". Her suggestion was don't allow others to place or allocate their stresses on you, especially when you may venerable to taking on other's stresses through codependent behaviors.