However, what if it crashes? It never crashed, but it could happen when putting it on a host. Perhaps an attack, or w/e.
The only way to get around that is periodic saves, using a timer. Also, you can add a snippet to check for a suddenly large amount of connections and then immediately save everyone's statistic, just in case.