forgot to close log file