Adding handling of SIGTERM, the signal sent by God when it's time to shutdown the script.