The only way to safely shutdown the system is to SSH to it and shutdown the system. Add hardware or software method to turn off machine.