'Kill the process if it is still running.'

def ProcessAbort(self):

    self._process_status_lock.acquire()
    try:
        self._process_status = self.STATUS_ABORTED
        if self._process:
            self._process.kill()
            self._process = None
    finally:
        self._process_status_lock.release()
