Emit end events after queries complete.