- skip main loop on connect error (another potential fix for issue #41)