Added catch of Ctrl-C so the program won't exit.