removed calling terminate on worker.
removed calling terminate on worker. updated version