What happens if an electromagnets ecectricity is turned off?

The magnetic field dies.