Fix CfReadLine semantics in error cases
Properly handle errors arising during CfReadLine