[frontend] Cleanup.
[frontend] Websocket behaviour adjustments on disconnect.