Disconnect from groupchats when closing window
When chat window behavior is set to "Detached roster with single chat" closing window with chats marked "Minimize on close" leads to disconnect from them (in place of minimizing). Bug appears then window has more than three tabs.