small refactor to read the qemu STDERR in case of errors