Period started during sex

Ughhh I knew it was coming but wasn't there yet! Has this happened to you? How did your guy handle it? How did you handle it?