Small sparks (known as arcing) when plugging in or removing a power supply are quite normal and are related to the inductance of the AC adapter. Any wire loop (any conductor has small inductance), such as a transformer, has an inductance. The transformer has a...