isterminated phpdoc
add Worker::isTerminated