And if you use the QEMU guest agent you need to enable the "QEMU guest agent" Option for the guest. Only then it will use the guest agent to shutdown the guest. If you don't enable that option it will shutdown the guest using ACPI.
If you for example enable the "QEMU guest agent" option but your guest agent isn't running, the shutdown won't work.