Handle errors thrown by the websocket transport loop.