prevent hangings on Windows in some cases