OnApplicationQuit method in Global.EmptyInstantiator Methods public void OnApplicationQuit() Called when the application exits.