re-connect on websocket close
emit disconnect event on websocket close