When I don't get good cards I try to play with the bad hands but I don't invest a lot of money so I play more cautiously and try to be patient until I get a good hand to try to double down at the table.
Many times I am angry too, but this is usually the case when I have a bad day. Most of the time, I accept if the opponent wins at the last minute. If I’m very angry, I stop and do something else, something less stressful.
I understand you. But you can't let that effect your game.
Also, when you do not open hands for a long time, you will have a tight image on your table, what can resulting you to open more hands by getting called less often.
When the game is not going on, moving with a normal map and from a position, I also get upset, I close poker, I start analyzing my game, if there were any mistakes that could be corrected. If, as a result of introspection, I come to the conclusion that I did everything right, then I do other things. If I still see my mistakes, then I write down in my notebook what was wrong in order to remember and not repeat later.