Clean shutdown.