core: Fix tear-down order in setup error path

We have to do the arch shutdown before the restoring the CPU state to
Linux as we will otherwise lack required mapping for MMIO access. On
x86, VT-d shutdown will then cause a crash.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>