Fixed handling when sockjs connection is disconnected