init: trap err/exit so it shows up in the log how we came to exit qemu