fix exit_on_queue_empty for benchmark task