Destroy resize event on teardown

The resize event wasn't destroyed, so it showed errors after teardown.