Idml support

Maybe you could close the files only if the code is running on Windows?