log websocket error details in onclose
bookmarklet