Add support for bailing out on ctrl-c