Shutdown support for RequestAnimationFrame