[py] webkit harness: only tear down the service when it started
diff --git a/py/conftest.py b/py/conftest.py
index b56bb94..d76cd31 100644
--- a/py/conftest.py
+++ b/py/conftest.py
@@ -805,7 +805,10 @@
             self.service.start()
             super().__init__(command_executor=self.service.service_url, options=options)
         except Exception:
-            self.quit()
+            # Only tear down if a process was actually started; otherwise
+            # Service.stop() raises AttributeError and masks the real failure.
+            if getattr(self.service, "process", None) is not None:
+                self.quit()
             raise