Bail if connect fails early on, per suggestion RT31823