When you say "mad" are you talking about jumping around scartching the floor? If this is so then it is him scenting the gournd when he paws the ground and he is proberly feeling better once he has had a poo. One of my dogs ggives a litle bark and jumps around as if to say "thats better"