- The user is now asked before closing a page
- sped up session clearing