The most common response to unexpected behaviors from humans or systems is one of surprise. In some cases, the surprise leads to panicked reactions and temper tantrums.
However, “But, it was unexpected” is a really lame excuse for an immature response. That’s because unexpected behaviors are the most predictable outcomes when humans and systems interact with each other. Their exact nature may be unexpected but their presence is not.
So, if something is expected and inevitable, there’s no place for panicked and frazzled reactions. A creative, constructive and corrective response is all we need.
And, if you feel up to it, a sense of humor is a bonus that would work great, too.