It is the worst thing that happens in this game.
The wi-fi warning thing is good, but so often there is nothing you can do.
Printable View
I don't think this could be possible to code. When you lose connection, it's already because the game tried to reconnect, but it wasn't possible (sometimes it can also be because the device's faulty connection, but let's consider this is not the case) to reconnect. If your attack went offline and it could not restore the connection, then everything you done would not be recorded, so it will still be the same result.