The best excuse is the truth.
if it happened while you were with your husband its pretty much a form of cheating
so he has a right to be upset
and you need to talk to him about what happened and what you can do to help him get over it
but if it happened while you wernt with him he has no reason to be upset