Closed the room if the host leaves

Hello,

I want to automatically close the room when the host leaves, do we have a solution for this?

Thank you