Try not to react merely in the moment. Pull back from the situation. Take a wider view. Compose yourself.
EpictetusDo you know that disease and death must needs overtake us, no matter what we are doing?... what do you wish to be doing when it overtakes you?... If you have anything better to be doing when you are so overtaken, get to work on that.
Epictetus