Anal sex?

Kay

So i did anal sex for the first time with my boyfriend today. Everything was going smoothly until he stopped and I noticed 💩. On the condom. He was totally cool about it and told me not to worry But i was immediately embarrassed and just rushed to the shower and stayed inside as long as possible. Has anyone ever had similar situation? What are some ways to avoid that happening if we were to try anal again.