code: def kill_the_system(self, warning: str):
          
          log.critical('Kill reason: ' + warning)
          if self.DEBUG:
              return
  
          try:
              self.mail_this(warning)
          except socket.gaierror:
              current_time = time.localtime()
              formatted_time = time.strftime('%Y-%m-%d %I:%M:%S%p', current_time)
              with open(self.config['global']['killer_file'], 'a', encoding='utf-8') as killer_file:
                  killer_file.write('Time: {0}\nInternet is out.\n'
                                    'Failure: {1}\n\n'.format(formatted_time, warning))
docs: Send an e-mail, and then
          shut the system down quickly.