Elasticsearch: add exception logging