A circuit for discharging stored energy in an electrosurgical generator includes a pulse width modulator for controlling a high voltage power supply, an error signal generating circuit configured for delivering an error signal as a difference between an output signal voltage and a feedback voltage generated by the high voltage power supply. The circuit further includes a switching circuit configured to switch in a load in parallel with an output of the high voltage power supply when the error signal is less than a first predetermined threshold to discharge the output.