Fix shutdown for CPU-only applications.