Why outlets spark when unplugging - EMF & Inductors

I'm wondering... Is there a way, like with the water valve, to cut the current so fast that the energy in the coil and the magnetic field cannot escape? If so, what would happen?
In my mind, I am theorizing that either the magnetic field would remain or the energy gets transformed into heat which then would be able to escape slowly by the known processes of cooling off.
Would that be a usable guess?