Respond to SIGTERM gracefully as well as SIGINT