HIVE-8984: dump counters before sending back to client