Proper shutdown.