pipes: close file unused descriptors.