Implement the quit command.