Trying forever seems like a bad idea. Other Metasploit payloads have a `RetryCount` and exit after that many failures.