Depends on what their rudeness stems from, but I generally make a constructive reply to try to fix the situation, and if that doesn't improve the situation, I look at what I'm doing and if it will be easier just to drop group and leave, I'll do that.

Sorry for the innocent bystanders that have to see me leave who were nice to me