def close(self):
        """
        Closes the file descriptor associated with a kevent descriptor.
        """
        try:
            os.close(self.fd)
        except OSError:
            pass

        Closes the file descriptor associated with a kevent descriptor.
        
src/watchdog/observers/kqueue.py