prevent hanging on Windows