def command_shutdown(self, send_handler, args, kwargs, client_key): send_handler('shutdown %s ...' % settings.NAME) Daemon.stop()