No crash on disconnects

Errors from ElasticSearch are not returned as JSON.