added watch dog and worker garbage collection