Needs to gracefully exit if a ctrl-c is received.
Needs to gracefully exit if a ctrl-c is received.