all: fix race on quit. nprocs=0 means sequential