handles broken pipes