Elasticsearch: set creation client and failure case