How to capture video close event

I am facing an issue where if video call is disconnected from one end then it’s not getting disconnected on another user.

I am using jitsi external url api .

I am not able to capture close video call event in my app.