qthread hang up fix