stop listening to resize events if destroy a renderer