How to close session Video sdk session by Ui-kit JavaScript

how to close session Video SDK session by Ui-kit JavaScript when any participation leave