close the log