log exception if fail to return results to client