fix timeout logic in _killGnuplot