Make subprocess close file descriptors