Make sure you clean up the associated renderer when destroying a window.