you should call `destroy` (or `onClose` if you follow my advice :) ) here too, right?