def METHOD_NAME(self, address: str, node: str, process: "Popen[Any]") -> None:
    if address not in self.scripts:
        self.scripts[address] = {}
    if node in self.scripts[address]:
        self.scripts[address][node].terminate()
    self.scripts[address][node] = process
    GLib.child_watch_add(process.pid, self.on_script_closed, (address, node))