Add class for managing shutdown of queues