ccc: prevent exceptions and errors when passing output through head(1)