call to flush CSV logfile