This seems sad that this happens on windows and not unix. I'd be more in favor of just swallowing all errors instead of testing for some errors on some platforms and none on others. It still seems icky to swallow errors though...