We haven't seen this on any other platform, so I suspect this issue is specific to Windows, where the testing we have done is minimal. If the atexit registration is the best solution then I think we should include it in the next release. I wonder, though, if FileStorage.__del__ = FileStorage.close would work as well. Have you, by any chance, tried that or decided it was not sufficient?