code: def close(self):
          
          if self.error_log and not self.quiet:
              print("\nErrors occured:", file=sys.stderr)
              for err in self.error_log:
                  print(err, file=sys.stderr)
          self._session.close()
docs: Print error log and close session