When it has happened to me by surprise, I have switched to a blowoff tube as soon as I catch it. Depending on your setup, leaving it can be bad because fermentation can actually have enough force to blow a lid or stopper completely off. Then you'll really have a mess. Like Ravenshead said, clean it up, re-sanitize. You can then rig a blowoff.