remove thread from service