Closing the discharge circuit of the storage capacitor with semiconductor devices