added try/catch to elastisearch quires