It's not easy to calm yourself in a frustrating situation, but everyone should know how to calm yourself. At least you should know how to act calm in such situation.
It is not easy to deal with frustration. But if you feel that situation is frustrating just stay calm for some time and think how you should act to come out from this frustration. Think about the happy moments in your life. Just spend some time with family member or friends and try to be happy and calm with them and divert your thinking with some funny gossips.