exec: close child pipes from the parent process