At the moment the Failure listener is a bean, which is not really necessary. It would most likely be better of to be integrated with the client factory. Also if the sniffer is active we want a sniffer enabled failure listener as well.
https://www.elastic.co/guide/en/elasticsearch/client/java-rest/6.0/_usage.html