Catch elasticsearch exception