Broke out ctrl-c handling to separate file