Fix format of error message
Fix visio is not unloaded if failed to open document
Fix tests are broken on windows