Ensure that websocket thread never exits. Also add debugging with username.