Period during sex

So me and my ex just hooked up, and I'm on birth control so knowing my periods are? very random. But after we had sex I dropped him off at the gym and I come home and BLOOD everywhere!! This has never happened before and quite honestly I don't know how to tell him that I got my period in the middle of sex... please help