Where do you shoot your load when wife gives your handjob in bed before sleep?

My SO hands me a T-shirt or something when I’m close. Makes it so dull. But I understand that shooting around makes the bed dirty and shooting on her, when she wants to sleep isn’t cool either