If the criticism is probably affect the personal sphere, does not have to answer the same. Just say you're sorry that you did not want to upset anyone. After a while, people cool down and maybe he will be ashamed of his words. If you think that his comments were unfounded, calmly tell about it. But do not try to talk with someone who at this point is irritated, angry or beating in hysterics.
If you find it difficult to stay calm, close your eyes and remember a time when you were confident and balanced. Try to look at everything from the outside, imagine that it's not you accept criticism.
If it has been some time after the unpleasant incident, and you are still angry, scroll to the situation again in my head, as if watching her from afar. You can replace some words in a funny, so you can cheer yourself up. Think of all the claims made and think about which of them really require your attention. Mark them for yourself to start working on getting it fixed.
Criticism is rarely justified. But this does not mean that the person criticizing you or do you not like bad doing something. Most likely, there are some shortcomings that need to be corrected. Next time warn in advance situations in which you may comment. For example, at work, before pass an important project or report, make sure to do a few times.