Avoiding or suppressing excessive transient voltages or currents