Shutdown notification

When shutting down a node in an elastic cluster, we should let it know first, so that it can offload logs to S3 or whatever.