Maybe related to `connection_timeout` in client opts. If you set it some X value, client will try to connect to relay after X timeout pass, instead of stop trying connect after X timeout.