added code to do a graceful exit when it gets a SIGINT, which hopefully will allow us to stop long-running test iterations without leaving lots of addled output files behind.