What is TML?
It seems that you have/had a quite a dodgy connection.
There's not going to be a way that suitably deals with this issue for every battle. Most battles, you wouldn't want to upload a lost/drawn result. However, in some situations (particularly ships/or you took out part of the team (like you did)), you would.
As in most cases, you wouldn't want the battle uploaded (for TM reasons), the client handles disconnections as 'not submitted). Also, you could have lost connection very early in the battle. So, the online client didn't have any of your progress. In the old days when the client automatically uploaded results, we used to play in aero-plane mode. You could play the whole battle (after starting it) off-line, then decide whether you wanted to upload it or not once you were done. I.e. turn aero-plane mode off or restart the client.