capture SIGTERM, if kill script, then handler called