Added close method for log file.