Fixed the ElasticSearchPersistWriter

it could be bubbled up....