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

Fixes a crash when exiting the application.