I don't see the problem with leaving when you're ready if that's before the party's over.
Not "overstaying your welcome" goes both ways. It is legit to feel "I'm done here", say the thank-yous, and go.
I don't understand. I'm open to understanding the other side of the coin.