[Mac] Fixed DllEntryPointNotFound crash on device unplugging