Discharge of maintenance capacitor