[cec] Fixed PeripheralCecAdapter application exit code handling.