close log file