fixes #1815,1737 DelegatedTask will call children's cancel method.

Change-Id: I1d0ed81524d0b9556b1965baf6180e61e26d2df6