Follow DistributedSearchPlanner change

It supports errors.