def sigterm_handler(signum, frame):
global _handled_term<EOL>if not _handled_term:<EOL><INDENT>_handled_term = True<EOL>if not _env_var_true("<STR_LIT>"):<EOL><INDENT>print >> sys.stderr, "<STR_LIT>"<EOL><DEDENT>sigbase_handler(signum, frame)<EOL><DEDENT>
Exit gracefully on terminate.