explicitly closed io streams for dzi file
made logging messages more cross-platform friendly