Supports 'exit' to quit the program.