fixes Errors when unplug device on windows Issue #95
Merge pull request #139 from adrai/winfix

fixes Errors when unplug device on windows Issue #95