Wait on new tasks when stopping