Fixes sceneTest crash when it quit.