Remove observers when deallocating the window.