Ensure that websocket errors are handled in the poll/put threads.