Closure of the distal pancreatic stump with a seromuscular flap