Correctly qualified the check of the connection - was erroring out sometimes