The solar generation is stopped when there is a power-cut from the grid. The solar inverters have the inbuilt property called anti-islanding which makes sure that the moment there is a power outage at the grid, it will stop the solar generation.