def sigterm_handler(signum, frame):
sigint_handler(signum, frame)<EOL>for process in multiprocessing.active_children():<EOL><INDENT>process.terminate()<EOL><DEDENT>sys.exit(<NUM_LIT:0>)<EOL>
Intercept sigterm and terminate all processes.