Fixed bug that caused timeouts when talking to a downed host.
Fixed timeout on gen_tcp connect