973938: correctly handle SIGPIPE in rct

I think this is only a problem in rct cat-cert because we're building a giant string and printing it out at once, it doesn't seem to break lots of separate prints.