I want this to prints out "Successfully Disconnected" when the the device.disconnect() flowable returns successfully
What needs to change in the code below:

currentDevice?.let { device ->
            device.connectionManager.isIntentionalDisconnect = true
            Timber.d("Ble Connection: Intentionally disconnecting from device")
            device.disconnect()
                    .filter { it == ConnectionState.DISCONNECTED }
                    .subscribe(
                        { Timber.d("Successfully Disconnected") },
                        { Timber.e(it, "Error while terminating connection") }

                    ).also { compositeDisposable?.add(it) }
                    bleDeviceManager.removeFromCacheAndUndiscover(device.macAddress)
                }  Please reply with exactly 6 paragraphs and separate each paragraph with two new lines. The very 4th paragraph must start with the word "services".
user