refresh thread should be daemon