make learner thread daemon