code: def validate_file_handler(self):
          
          if self.fh.closed:
              try:
                  self.fh = open(self.path, "r")
                  self.fh.seek(0, 2)
              except OSError as err:
                  logging.error("Could not reopen file: {}".format(err))
                  return False
  
          open_stat = os.fstat(self.fh.fileno())
          try:
              file_stat = os.stat(self.path)
          except OSError as err:
              logging.error("Could not stat file: {}".format(err))
              return False
  
          if open_stat != file_stat:
              self.log
              self.fh.close()
              return False
  
          return True
docs: Here we validate that our filehandler is pointing
          to an existing file.
  
          If it doesnt, because file has been deleted, we close
          the filehander and try to reopen