Handle SIGTERM in addition to SIGINT.