HA rebooting when I try to Shutdown

Quick question to see if anyone else has had this issue.

Whenever I try to Shutdown homeassistant using the inbuilt Shutdown functionality, my instance just Reboots.

I have HA running on a VM in proxmox so can just use the functionality in proxmox, but it would be great if i could shutdown my instance using its own features.

thanks in advance for your help