Work around iso.GetFileNames() bug?!?

Fix infinite logging loop on Close().
Add assert checking on log contents in some tests.