Encountered this non-recoverable error while trying to abandon a surface (delete all entities) on a planet in Space Exploration. It seems like this error occurred when the game tried to delete the sonic emitter hubs.
Error while running event Factorio-Tiberium::on_entity_destroyed (ID 160)
LuaSurface API call when LuaSurface was invalid.
stack traceback:
[C]: in function 'index'
__Factorio-Tiberium/scripts/CnC_Walls.lua:81: in function 'CnC_SonicWall_DisableNode'
Factorio-Tiberium/scripts/CnC_Walls.lua:122: in function 'CnC_SonicWall_DeleteNode'
Factorio-Tiberium/control.lua:1656: in function <Factorio-Tiberium/control.lua:1627>