Add auto-shutdown.