Live chess clock and PGN



Ever happened that you have a 0.1 seconds on the clock and you make your final move and it happens to be a checkmate and you see with grace that PGN shows your checkmate and then comes a popup that says you lost on time. 

As it is happened often and I find it quite disturbing. Proprably it is a code problem that even though your time ran out pgn still shows your move, if not could please anybody explain me why there is a neccecity to show a move on PGN that actually wasnt "legal". It is not a big deal but we all want to be perfect. 

On a slightly different subject, analyze mode could provide players time on the analysis as well. I mean you could look up on what move you took a longer thought, which moves you blitzed out and so and so.