capture SIGTERM as well