Attempt to shutdown Elasticsearch gracefully