[hacc] Add finish callback with Tree argument