remove background thread