Fixed a problem in socket_connect_addr where the call to
connect fails permenantly and we close the socket but continue
to loop with a bad socket handle.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev