def _run_and_return(self, cmd, sudo=None):
        ''' Run a command, show the message to the user if quiet isn't set,
            and return the return code. This is a wrapper for the OCI client
            to run a command and easily return the return code value (what
            the user is ultimately interested in).

            Parameters
            ==========
            cmd: the command (list) to run.
            sudo: whether to add sudo or not.         

        '''
        sudo = self._get_sudo(sudo)
        result = self._run_command(cmd, 
                                   sudo=sudo, 
                                   quiet=True, 
                                   return_result=True)

        # Successful return with no output
        if len(result) == 0:
            return 

        # Show the response to the user, only if not quiet.
        elif not self.quiet:
            bot.println(result['message'])

        # Return the state object to the user
        return result['return_code']