There is no way for the blank canvas process to know that the client has disconnected. But we can look into adding something to comet that will give this ability. Also, there is a websockets version, that should be looked at - the close will be easier to detect.
@andygill writes: