Add a SIGINT (Ctrl-C) handler with the option to add custom cleanup code.
Add a SIGINT (Ctrl-C) handler with the option to add custom cleanup code.