Error: Cannot enqueue Query after invoking quit.