McA: Release log file handle so that removing temporary file at end of test works on Windows.