TEZ-948. Log counters at the end of Task execution. (sseth)
TEZ-968. Fix flush mechanism when max unflushed events count set to -1. (hitesh)