Changing chat type and other chat settings without forking

Hey! I have a question. So I have created a party System similar to the one on Minecraft Hypixel and I created a system to make channels so that players can chat separately in tabs in their respective parties. Everything is working except for one issue. When a party is disbanded and I delete the party channel each member is in, if a player still has the channel tab open, it remains there. They can type messages but they can’t send messages. I want to be able to find a way to delete the tab even if they are viewing/typing in it.