McA: Release log file handle so that removing temporary file at end of t...

...est works on Windows.