Deal with return value in batch.