Test quitting of program with a prompt.