Batch wait for locals

Fixes bug seen by Evan, in which killing the pool does not clean the workers up.