Cleanup window resize event handler. fixes #58