graceful shutdown and domains