Execute halt/reboot commands using QProcess.