Add SIGINT/SIGTERM handling.