Fixed unbind of resize event on close.