code: def run_exit_code(self, returncode):
          
          exit_status = False
          self.log.info('[run] Exit Code {}'.format(returncode))
  
          self.reports.increment_total()  # increment report execution total
          valid_exit_codes = self.profile.get('exit_codes', [0])
          self.reports.exit_code(returncode)
  
          if returncode in valid_exit_codes:
              exit_status = True
              self.reports.profile_execution(True)
              print('App Exit Code: {}{}{}'.format(c.Style.BRIGHT, c.Fore.GREEN, returncode))
          else:
              print(
                  'App Exit Code: {}{}{}{} (Valid Exit Codes: {})'.format(
                      c.Style.BRIGHT,
                      c.Fore.RED,
                      returncode,
                      c.Fore.RESET,
                      self.profile.get('exit_codes', [0]),
                  )
              )
  
              self.reports.profile_execution(False)
              self.exit_code = 1
              if self.args.halt_on_fail:
                  raise RuntimeError('App exited with invalid exit code {}'.format(returncode))
          return exit_status
docs: Handle the exit code for the current run.
  
          Args:
              returncode (int): The return exit code.
  
          Raises:
              RuntimeError: Raise on invalid exit code if halt_on_fail is True.
  
          Returns:
              bool: True if exit code is a valid exit code, else False.