fixed _onDisconnectTimeout never trigger because maxRetries is undefined.