TCP connection test now fails if the connection is refused, not just on timeout