Contact Cleaner vs Brake Cleaner

Brake clean is good but I've been taught to disconnect any power source before spraying on wire connections.