docs: def close_logs(self) -> None:
          """
          Close Python disk logs.
          """
          if self.stdout is not None:
              self.stdout.close()
              self.stdout = None
          if self.stderr is not None and self.stderr != subprocess.STDOUT:
              self.stderr.close()
              self.stderr = None