Fixed but where if all jobs were running, flock would exit prematurely