Why should care be taken while closing a capacitive circuit?
In theory when an empty capacitor is connected to a ideal voltage source, infinite current flows until capacitor is charged to the supplied voltage. Basically same thing when disconnecting a powered inductor, in theory the voltage goes to infinity. Many devices like computer power supplies, LED lamps and phone chargers have inrush current limiting because of capacitance.