Adding queryId to onerror socket response