Fix crash when actions are executed by plugin threads after skin unload