Added a ctrl-c handler for stopping execution