fixed TaskAggregator#done and TaskAggregator#fail behaviour