In Germany, where this kind of plug-in solar panels is very common (1.5 GW installed power) it is mandatory that the inverter powers itself down as soon as the grid is offline/disconnected. It has to be so fast that you can savely touch the plug after unplugging it.
I guess it's standard everywhere.