Actually put the bg_thread to sleep when idle