closing log file