On shutdown, if there is an ImageView actor with an
AnimatedImageVisual still in the tree, then on destruction it tries to
kill off textures. However, TextureManager has already been shutdown
and can't be called.
Adding a lifecycle observer so AnimatedImageVisual helper classes can shutdown cleanly.