Handle SIGINT/SIGTERM in processes.