ScreenCast: close screencast dialog when the session is closed from the client side
When the session is closed, for example trying to share a screen in Chrome and closing the web page while having the portal dialog still open, it will not take down the dialog and instead it just gets hidden below Chrome's window.