Handle broken pipes and other cleanup in yes