Fix bug causing many sockjs client connections on reconnect