Actually, if it’s an emergency, it is. And if you’re a woman and you have the unfortunate luck of experiencing your monthly cycle while you’re in that 50 minute class (which has happened to me few times before), going to the bathroom is perfectly valid because continuing to sit in bloody underwear is just unsanitary (and super embarrassing if you’re wearing white pants or jeans).