Muliplus II ESS on generator and delivering to grid.

Assume the following situation: Solar all connected to DC through victron hardware.
Multi delivers eccess energy to grid. All well so far.
Then grid goos down, also no problem when batteries are full cerbo will throttle down the victron PV convertors.
Then i switch the multi to generator. Multi ‘thinks’ grid is back and (if access pv is available) will export it to the ‘grid’.
Effectively burning out the generator.
My question is: if i toggle in the cerbo the connection on multi grid input from ‘grid’ to ‘generator’ will the multi be smart enough not to try delivering energy to its ‘grid’ (witch is actually the generator)?

For now my solar is connected to the multi-out so i can just switch my solar off when i start the generator, but as soon as i have it all connected on the DC site i can not. Soon it will all be connected to the DC site of the Multi so this could be a real problem.

Does anyone know?