close
Closes the chat.
Always dispatches the UI work to the main thread — the public KindlySDK.close() is callable from any thread, and the internal endChat() invokes this from the chatManager.disconnect(...) callback which currently runs on the Promise's Dispatchers.Default (background) queue. Activity.finish() must be called on the UI thread; calling from background risks CalledFromWrongThreadException or silent misbehavior depending on what's currently happening on the main looper.