Catch and log errors on send.
Made some more changes to the WebSocketHandler and client websocket.
- Prevent double dispose on the client side WebSocketTransport.
- Always close the websocket before cancelling the token on the server.