Fixed problem with ctrl-c exiting the shell