def shutdown_program():
 logging.info('Performing sabnzbd shutdown')
 sabnzbd.halt()
 cherrypy.engine.exit()
 sabnzbd.SABSTOP = True

def shutdown_program ( ) : logging . info ( 'Performing sabnzbd shutdown' ) sabnzbd . halt ( ) cherrypy . engine . exit ( ) sabnzbd . SABSTOP = True
stop program after halting and saving .