Bug fix in LogFile.ReportError()

Moved statement into finally block.