Exiting the program by typing 'quit' now works.