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

prevent hanging on Windows