catch elasticsearch errors in profile and alliance model