fix KeyError in destroy_window
Merge pull request #3 from fogleman/master

fix KeyError in destroy_window