Connection Error - JWT

Hi there.
I have a self jitsi docker installation working with jwt.

When i try to access to url without jwt like

https://url_to_jitsi/room1

I can catch the connection error, and if i redirect to other page everything is ok.
Nonetheless, if i want just to show a error message, audio and video are still connected (When are they added?) and i don’t know how to remove them.
There’s any function to do that ?

i tried with APP.conference._room.leave or APP.conference.hangup() but obviously there is no room.

Thank you