Avoid crash on Windows when unloading the package.