fixed terminate arg bug in local; fixed manager bug where it would shutdown without first terminating all workers.