Shutdown the Core before other components.

Other components depend on the EmuThread being stopped.