SIGHUP fix for Windows
Merge pull request #9 from Kolobrodik/master

SIGHUP fix for Windows