Yeah, unfortunately its an issue in vanilla that is probably made worse in DeI by all of our custom scripts and systems. Its best to disband units first and as Cleeon says move the general/end turn before disbanding him.