The OnDestroy even function is called when this ScriptableWrapper is destroyed.
OnDestroy also gets called when the application shuts down and when leaving Play mode inside the Editor.