Added 'maxConnectionRetries' settings option. Setting this to a negative value will make the bot keep retrying forever