Make QueueClientEventHandler works for both singleton and transient mode.