check for reset (TCP) connections, this fixes where it would try a second time and get a broken pipe