Added shutdown hook to unbind the 'resize' event.