def METHOD_NAME():
    global _native_lib_handle
    system = platform.system()
    try:
        info("Unloading native lib...")
        if _native_lib_handle:
            if system == "Windows":
                from ctypes import windll
                windll.kernel32.FreeLibrary(_native_lib_handle._handle)
            else:
                _native_lib_handle.dlclose()
        else:
            info("Native lib already unloaded")
    except Exception:
        critical("Unloading native lib failed on {}: {}", system, sys.exc_info())
    finally:
        _native_lib_handle = None