stop bg thread after sending signal