I don't know if you are sure that the match result is confirmed 5 minutes (match play time, not real life time) before match ending time. I think it is probable as our last chance to substitute a player is at 84 minute.

Anyway, if I am the programmer, I will not let the result to be leak out before all people involved in the matches (i.e. managers & supporters) have normally received all match status information and have already noticed the match have already completed.

However, if there is any reason (normally, network problems) which makes one or more involved parties delayed in receiving match status information, these parties may eventually find themselves knowing the match results at a later time comparing with other people.