trying different elasticsearch error handling