def stop_mainloop(): """Sanely halt the Twisted mainloop.""" deferToLater(_stop_mainloop)
def shut_down(): deferToLater(_shut_down)