Is closure of the peritoneal layer necessary in the repair of midline surgical abdominal wounds?

Is closure of the peritoneal layer necessary in the repair of midline surgical abdominal wounds?