added window close support (#9)
Merge pull request #10 from ryanzec/close-support

added window close support (#9)