fun end(force: Boolean? = definedExternally, options: dynamic = definedExternally, callback: () -> Unit? = definedExternally) Closes the client with the given options and executing the callback function after ending. can be forced by setting the force flag to true.