def release(self):
        """
        Release all file descriptors opened by L{exhaust}.
        """
        while self._fileDescriptors:
            fd = self._fileDescriptors.pop()
            try:
                self._close(fd)
            except OSError as e:
                if e.errno == errno.EBADF:
                    continue
                raise

        Release all file descriptors opened by L{exhaust}.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/test/test_tcp.py