Good point you have there lad! getting emotional on trading is natural because were not a robot but just a human being. Most of the traders could not avoid this trading emotions but became successful in the end because they have learn how to manage them.
Frustration is one of your enemy whenever you lose in trading and if you want to overcome this then you must start accepting the fact that not all of your trades will become succesful and take this as a lesson, you may also start analyzing where it went wrong and for sure it will helpful you on your future trades.