Try caring a crop of you know he will do that
I would suggest trying to get him to poop before you go into the show ring I know some people who train their horses to do it but I have no idea how hahah
Just keep urging him onward. They usually do that because during their training they were allowed to. Never let them do it and they won't acauire the habit.