'Terminate running processes.'

def terminate(self):

    if (self._process.state() == QProcess.Running):
        try:
            self._process.terminate()
        except Exception:
            pass
    self._fired = True
