I have set up my script that launches phpFreeChat to check a flag. This flag tells the script whether or not I want the chat room to be active. If not, then the launch script puts up a "be back later" message.
That takes care of new people coming in to the chat room. What I need now is a good way to tell people that have the chat room already loaded that the chat room has "closed". I'm guessing I could modify the refresh Ajax call to check for a "chat room closed" return from the server side, which I would have to add myself, but I'm trying to avoid making modifications that will be hard to integrate into newer versions of the phpFreeChat code base.
What's the easiest and least destructive way I can tell the client side code to quit the chat room from the server side, without creating an "Invalid XML response" error? I think a cool feature for the future would be a settable server side check that would allow phpFreeChat chatroom administrators to shut the chat room on and off.
Of course, if this ability already exists, just tell how to do it.

Thanks.