Improved session logout