ShaderFactoryTest: prefer to use Main::stop_running stop the run loop