prevent hanging on Windows
Merge pull request #9 from chorny/master

prevent hanging on Windows