完善Task销毁逻辑

from fysn idea