Tails gets him out, and Sonic (he's a werehog at the moment) breaks into a vault to recover Gaia manuscripts Eggman wanted the professor for. So they get out, but when they get back to the village ...