close file descriptors