refine onTaskRemoved