use isTerminated to check done status