A script to close Elasticsearch indices