Handling Exception in TempalteHitList with proper debug output