task notifies parent when ended