Make PCDM also look for the "halt" and "reboot" processes for shutdown detection