def _close(self, fd):
try:<EOL><INDENT>self.files[fd].close()<EOL>self._closed_files.append(self.files[fd])  <EOL>self.files[fd] = None<EOL><DEDENT>except IndexError:<EOL><INDENT>raise FdError(f"<STR_LIT>")<EOL><DEDENT>
Removes a file descriptor from the file descriptor list
:rtype: int
:param fd: the file descriptor to close.
:return: C{0} on success.