- // Optional cleanup method to be called only in PROOF in SlaveTerminate phase
- virtual void Cleanup();
+ // Optional method that will be called in SlaveTerminate phase for each task
+ // Warning: in PROOF mode this is called before merging so their cleanup is
+ // not allowed - do output cleanup in class destructor.
+ virtual void FinishTaskOutput();