Attempted to fix a possible infinite loop in the DaemonRawCommand CMS function.