code: def quit(self):
          
          try:
              RemoteWebDriver.quit(self)
          except Exception:
              # We don't care about the message because something probably has gone wrong
              pass
  
          if self.w3c:
              self.service.stop()
          else:
              self.binary.kill()
  
          if self.profile is not None:
              try:
                  shutil.rmtree(self.profile.path)
                  if self.profile.tempfolder is not None:
                      shutil.rmtree(self.profile.tempfolder)
              except Exception as e:
                  print(str(e))
docs: Quits the driver and close every associated window.