Clean up window bindings on destroy

Fixes gh-98
Merge pull request #99 from gseguin/destroy-cleanup

Clean up window event bindings on destroy