How to get back to a better frame of mind

The first and most important thing to do when you find yourself either: angry, anxious, frustrated, overwhelmed or stressed, is to change your state.  Even if it is just for 5-10 minutes while you explore problem solving options.

As Albert Einstein said, you cannot solve a problem with the same thinking that created it.

Choose to step into the role of someone who would look at the current scenario in a rational and impartial manner.

Changing your state will take some effort, and its best to take a few long and deep breaths as you step out of where you were and into that new role. Use the power of your imagination to re-create the scene.

Maybe the issue needs to be written down, and then you can brainstorm possible solutions.