handle the BrokenPipeError which occurs under linux when the other side of the connection simply terminates