added an explicit socket.disconnect() on scheduleReconnect in the browser