improve error handling for elastic search updates