[Core] Fix crash on shutdown related to unloading SD2 library
Merge pull request #214 from lfxgroove/crash-on-shutdown-real

[Core] Fix crash on shutdown related to unloading SD2 library