I guess that you are running Zentyal server with a GUI on the server. I'm over 50 and prefer to run my servers with just a text based console to eliminate the risk of a graphics card problem.
My preferred shutdown command is:
sudo halt -p
Some things for you to check that I have found in the past have helped get a machine to shutdown and power off cleanly...
Is the BIOS up to date for the motherboard, all known bugs fixed?
Is the graphics card firmware up to date?
If running server on a PC, configure BIOS to disable suspend and hibernate.
If running server on a PC, disable APM, enable ACPI.
Disable all device wake-ups in BIOS, no wake up from mouse movement etc.
If running on server hardware, does IPMI chassis power control work? Check freeipmi is installed.
Enable CPU frequency scaling if supported.
Sometimes, you just can't get a PC to either power off or warmboot properly under Linux due to ACPI problems created by a buggy, non standards compliant AML compiler used by the BIOS manufacturer. Sadly most PC BIOS power management is optimised for Windows and the Linux optimisations are deliberately broken/untested/unoptimised. I have an ancient single core AMD64 machine that will poweroff but it will only reboot if it 'thinks' it is running Windows.
https://wiki.archlinux.org/index.php/DSDThttps://wiki.ubuntu.com/Kernel/Reference/ACPITricksAndTipsBest of luck.