format response result, add check error and defer rabbit close