log close after flush all logs