Better handling when ssh is in a pipeline.