Added agent error handling for table loading