Exit on SIGTERM or SIGINT