cleanup in compute_watershed_regions