function destroy() {
	const loaderDiv = tag.get("#__loader");
	const mask = tag.get("#__loader-mask");
	restoreTheme();

	if (!loaderDiv && !mask) {
		actionStack.unfreeze();
		return;
	}

	loaderDiv?.classList.add("hide");
	setTimeout(() => {
		actionStack.unfreeze();
		if (loaderDiv?.isConnected) loaderDiv.remove();
		if (mask?.isConnected) mask.remove();
		onCancelCallback?.();
	}, 300);
}
Removes the loader from DOM permanently