def METHOD_NAME(self):
    logger.debug("Closing all open browsers, contexts and pages in Playwright")
    try:
        with self.grpc_channel() as stub:
            response = stub.CloseAllBrowsers(Request().Empty())
            logger.info(response.log)
        self._channel.METHOD_NAME()
    except Exception as exc:
        logger.debug(f"Failed to close browsers: {exc}")
    # Access (possibly) cached property without actually invoking it
    playwright_process = self.__dict__.get("_playwright_process")
    if playwright_process:
        logger.debug("Closing Playwright process")
        playwright_process.kill()
        logger.debug("Playwright process killed")
    else:
        logger.debug("Disconnected from external Playwright process")