When everything goes fine and there's sunshine in the sky, then there is nothing to dwell or complain about. However, as soon as something happens that we didn't expect we are like, SHIT.
And that's exactly what life is. It's an up and down, sunshine and shit, rainbows and fucks.
You never have it in your pocket what's going to happen next.
So what can we do when something happens that wasn't intended or is just plain and simple an unnecessary pain in the ass?
Deal with it in the best and most adult way you can and then move on homie.
There's nothing else you can do. Cause as soon something happens and you're in the process of processing what just happened, it's already to late. It's already in the past. Even if it was just seconds ago, it's over aka finito.
It's now forever part of your story.
No dwelling, arguing or breaking out in an angry tantrum will change that. Sure, you might be able to influence the consequences, to your favour or also worsen them, both are possible.
Nevertheless, for whatever reason, what happened happened and you're left to deal with the consequences.
So make the best out of it.
Take a deep breath, deal with to the best of your abilities, don't make it worse than it already is and take it as a lesson for the future.