Flush last lines to log before finishing the run