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