fix: check whether net.Dial succeeds, otherwise we end up making a nil pointer on 'conn'