install atexit function from statsSetMaskStr rather than registerCounter.
install atexit function from statsSetMaskStr rather than registerCounter.

kaffe/kaffe,kaffe/kaffe,kaffe/kaffe,kaffe/kaffe,kaffe/kaffe