Whenever I go out to socialize, I remind myself of this:
"When it's time to fly, don't deny."
I've found that an early-but-graceful exit has a better effect. Whenever I've stuck around too long, my anxiety & what-not spreads around, and I'm now tainting their experience. Plus, it makes my recovery much more extenuated & difficult.