Close the index

def close(self):
        """
        Close the index
        """
        with self.subdomain_db_lock:
            self.subdomain_db.close()
            self.subdomain_db = None
            self.subdomain_db_path = None