'Kill the process and the associated watcher greenthreads.'

def _kill(self, kill_signal):

    pid = self.pid
    if pid:
        self._is_running = False
        self._pid = None
        self._kill_process(pid, kill_signal)
    if self._kill_event:
        self._kill_event.send()
        self._kill_event = None
