def METHOD_NAME(self, close_pipe: bool = True) -> None:
    if self.pipe_handler is None:
        raise RuntimeError("PipeMonitor is not initialized.")
    self.pipe_handler.stop(close_pipe=close_pipe)