WIP: do not exit manager until all tasks and worker processes have been terminated