fix close on Windows
Merge pull request #14 from schlamar/win-close

fix close on Windows