Handle SIGTERM as well as SIGINT