only call os.Exit on SIGTERM, not normal exit