fix shutdown in workertype
fix shutdown in workertype