And then when messages start coming from the server, lagged, about the channel? What then?

The current way is fine. Just force the window to close if you really want it out of the way.