Reset stats array in closeSocket()
Merge pull request #5 from awiddersheim/fix_stats_reset

Reset stats array in closeSocket()