Cleanup RemoteQuery