added clean up to worker