Inductive kickback: (a) Switch open. (b) Switch closed, current flows from battery through coil which has polarity matching battery. Magnetic field stores energy. (c) Switch open, Current still flows in coil due to collapsing magnetic field. Note polarity change on coil. (d) Coil voltage vs time.

inductive kickback without protection