Fixed unbind of resize event on close.

The close method was not correctly unbinding the resize event.