Allow specifying that the scene is ending while destroying actor and entry logics

- This will prevent some optional shutdown handler operations from running since the scene will be
destroyed once all the actors are gone.