adaptive tasks termination