added yield check while waiting for Termination