AI don't give up because of bugged Battering ram

For some reason the ai would not give up… we searched the entire map and after looking at the replay we saw it had a unfinished battering ram and it counted that as a unit still left…

Picture of replay

this might be because of the connection.