Period Sex

So I’ve been with my boyfriend for 8 months and when we had sex my period came on, now he’s mad because I didn’t tell him but I really didn’t kno. I feel really bad. Should I? What should I do?