Add support for startup/shutdown.