Refactored the code in TransmitAndReceive() so that a bad connection *is* closed, and the net.DialTCP error is the one that is returned