Reset stats array in closeSocket()