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

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