to make the flush in the logger_cleanup and all the things ok