TableWriter flushing fix (GEOT-4260)