The best way to end a conversation is to reply non-verbally. It shows you are not interested in the conversation. So fake smile your way out of the situation.
If you feel a bit annoyed or offended, just take a deep breath, give your best smile and act as if it didn’t bother you. Sometimes, the manner of how they said it will affect you differently but nevertheless be the bigger person and react in a mature way. I-ngiti mo lang yan, bes.