public void DestroySyphonClient()
    {
        //Debug.Log("destroying syphon client");
        if (attachedTexture != null)
        {
            attachedTexture.Release();
            //RenderTexture.active = null;
            UnityEngine.Object.DestroyImmediate(attachedTexture);
            attachedTexture = null;
        }

        if (syphonClientPointer != 0 && initialized)
        {
            // Debug.Log("DESTROY plugin syphon client destroy method...");
            Syphon.KillClientTexture(syphonClientPointer);
            syphonClientPointer = 0;
            initialized         = false;
            if (RetireClient != null)
            {
                RetireClient(this);
            }
        }
        else
        {
//			Debug.Log("syphon client: " + boundAppName + " " + boundName + " was not initialized, so not cleaning up the plugin on exit.");
        }
    }