Removed debug code. TokenBucket thread is now a daemon.