Caught the Broken Pipe error when writing packets