Add some reserve time / time freeze / cooldown that ppl cant do attack for a certain minutes after the war is end.
Like 30 min after war end. So ppl who attacking 10s before the war end can finished their attack and still counted, but they cant restart whenever entering reserve time. Like the other game have this kind of system.