in my current it happened that I had captured some artillery from the Union and had placed that in the city - I had added a garrison to that city. The Union came back to recapture that city. I lost the battle - and it seems I had lost my sole unit. Then the game generated a critical error.
conclusion = if you recapture equipment, the game seems to crash,