Just be honest! If you were in a chat with your classmates for a group project and everyone is still chatting in it despite the fact that the project is over, there's nothing wrong with explaining your decision to leave the chat.
So, if you need help explain yourself before you dip out, here are some tips. When you leave, everyone is going to know.
That means, there's no way to leave slyly.