AD DC shuts off - VMS crashes as a result

Hello. I have a 2019 Datacenter Hyper-V host with a lot of VMs running. And now I’ve some specific issue, where if a host must shut down, it gets turned off and moves to another location, and if AD DC gets shutdown (Vms must be turned off in a specific order), then VMS crashes. How to shutdown Vms properly? What is an issue here?