Reference is now made to FIG. 7 which illustrates a system 70 for protection during an islanding condition, in accordance with embodiments of the present invention. For simplicity, a single string 723 is shown of distributed power sources, e.g. solar panels 201 a-201 d connected to respective power converters 705 a-d. Serial string 723 is input to inverter 704 through wires 412 and 410. The output of inverter 704 is connected to and supplies electrical power to the electrical grid. Inverter 704, typically includes a monitoring, and detection mechanism 701 which monitors one or more parameters of the electrical grid such as voltage and/or frequency. If one or more of the grid parameters is out of specification indicating an islanding condition, monitoring and detection mechanism 701 typically causes inverter 704 to be shut down or inverter 704 is disconnected from the grid so that output power is no longer supplied by inverter 704 to the grid. At the same time, a signal 714 is transmitted to a switch mechanism 703 which may be located at the input of inverter 704 before input capacitor 708. Switch mechanism 703 is optionally packaged with inverter 704 or may be integrated with inverter 704 and packaged separately. In this example, signal 714 activates switch mechanism 703 so that when switch 703 is activated, the current flowing through serial string 723 and wires 410, 412 varies abruptly.