Anal worries

My boyfriend and I are going to try anal. I'm nervous that we'll have an incident and get poop on his dick or something.. how can I prevent that?