Clean up window event bindings on destroy

Fixes gh-98