When you've killed everyone except the enemy general, can't you just press Esc and end the battle? You should get a victory, surely?

Perhaps a drawback is that the enemy general might escape, but realistically, a general who's lost his entire army should be running for his life!