The trick to this is to study the tail closely.
A ball who needs to go has a swollen and puffy tail, it is unmistakable.
As to having it happen on you, sooner or later it will happen no matter how careful you are. Laugh about it, change clothes and take a shower, and tell yourself your a real owner now.
Gale