The stream should be closed (or the tests fails under Windows 7).