def exit_handler():
 syslog.syslog(syslog.LOG_WARNING, 'Closing log')
 syslog.closelog()

def exit_handler ( ) : syslog . syslog ( syslog . LOG_WARNING , 'Closing log' ) syslog . closelog ( )
an exit handler for the daemon .