'Request manager shutdown.
:param bool finish_queue: Should scheduler finish the task queue'

def shutdown(self, finish_queue=True):

    if (not self.initialized):
        raise RuntimeError(u'Cannot    shutdown    manager    that    was    never    initialized.')
    fire_event(u'manager.shutdown_requested', self)
    self.task_queue.shutdown(finish_queue)
