'Shut down POX.'

def quit(self):

    import threading
    if (self.starting_up or (threading.current_thread() is self.scheduler._thread)):
        t = threading.Thread(target=self._quit)
        t.daemon = True
        t.start()
    else:
        self._quit()
