fix some inconsistencies in tcp connection error handling; forwarding - avoid attempts to communicate with timeouted upstream. See merge request !716