Revert "use window.beforeunload if available, and try to log out if users close the window"

This reverts commit 9ffb3b5b767aaa69e79a97b12a8e04ba29099c86.