Add more debugging for websocket hang issue