clean up resize listener when turn order component is unmounted