Capacitor or power supply discharge