NoGUI: Add missing call to Core::Shutdown().

Fixes a crash when exiting the application.
Merge pull request #606 from Armada651/nogui

NoGUI: Add missing call to Core::Shutdown().