When you exchange heated emails with your boss please check his way of writing. After it reaches a certain level, the communication process is bound to take a bad turn. Understand if the boss is mentioning something which is not related to the subject that you were discussing with him in your trailing email. Check the aggression in his language.
You have to sometimes close the conversation by not responding to his email. This is maturity.