Implemented the quit command.