ElasticSearchOutput error output and connection resilience

Closes #1008.
remove the debug print statement