threads are managed and killed if problem in spotlight plugin