Fix unexpected exit when KEEP_JOB is set

Signed-off-by: kfei <kfei@kfei.net>