There was a problem if the borg had immunity to an element. If he ever traded out the item granting immunity, he thought he kept the temporary resistance flag.
Fixed more of the termination messages that were not being caught. I also built in a backup to catch them in case the parser did not see it.