Fet rid of explicit file stream flushes, streams are flushed on exit, which we can always gurantee.