Currently, I am developing a DotNetNuke website and facing an issue where I need to automatically logout the user when they close the browser or tab. Can someone guide me on how to detect the browser close event and trigger the user logout successfully?