fix task exit notification arriving before the data notification