fix for non-daemon stats counters thread causing jvm hang