rescue block for ES response