docs: def closeEvent(self, event):
          """
          Terminates the child process on close.
          """
          self.stop_process()
          self.backend.stop()
          try:
              self.modes.remove('_LinkHighlighter')
          except KeyError:
              pass  # already removed
          super(OutputWindow, self).closeEvent(event)