fixed isTerminated and awaitTermination implementation to be more consistent for resulting value