JitsiMeetJS.events invoke with lib-jitsi-meet API not working properly

JitsiMeetJS.events( JitsiMeetJS.events.conference.USER_LEFT, JitsiMeetJS.events.conference.TRACK_REMOVED ) are only triggering when the first user is leaving the conference. From the second time onwards if the person leaves these two events are not triggering for the any participants in the conference and the frozen video track remains there for them.
So, is this a known issue in event listeners from the lib-jitsi-meet and is there any solution available for this??

We tried using LAST_N_ENDPOINTS_CHANGED event listener to forcefully call the function to be executed when the user leaves, but this is not an ideal solution because this event is also triggering for other reasons like when mute is changed or track is removed.