added window close support (#15)
Merge pull request #16 from ryanzec/close-support

added window close support (#15)