Connection Lost happens only after attacks
I'm sure there have been several critical attacks that have been lost because Connection Lost occurs. My suggestion is, why not let the attack happen, then store the info in local clash of clans cache then send it out to the server. I know this seems far- fetched. However, it is a solution for the people who suddenly lose connection lost accidentally. Once you click attack, it is noted that you have attacked, however, the outcome of the battle can be sent after maybe 5 minutes. If you have been offline for more than 5 minutes after the attack supposedly finished, the attack will be declared lost. I believe there just should be a way that the attack will not immediately merit a loss especially as a war attack.
TL;DR: Record the attack to the local device, and send it out once the user goes online again. Then the server will process the attack then give the supposed stars/loot.
I know this will be a huge update especially the amount of computing power needed (maybe) but just a suggestion, Connection Lost losses are very annoying. :) hopefully this will be considered.