Add -noRetryAfterConnected and -retry options. These provide optional exit strategies for the default unlimited retry loop.