Graceful shutdown for updates