catch SIGTERM and convert to SIGINT