Cocos Thread cancel tasks