background threads properly cancelled

fixed lag