Graceful shutdown with domains.