The energy shooting all over the place is conducted by the metal ring and sent looping back around, presumably back into Sonic, kinda like an electric circuit.
This is why Tails needs the Super Emeralds to achieve a Super Form.