Added a throw to TcpClient constructor if the hostname can't be resolved