I have seen this behaviour (something like it was seen in Sid Meier's Gettysburg). I set two Corps to attack each other, each brought up supporting artillery, all the infantry ran away and in the end the Commanders were still moving gracefully around the blazing cannons with no troops to command and still reporting that their orders were accomplished.