Close log file