How can I logout the user from the application when it is destroyed. I have made an flutter web application in which it is easy for me to log out the user successfully and note the date and time of user logout through basic logout button but I want to note the date and time when user hit the close button or close the application without logging out. How can I do that can anyone help