Use user.logout() on exit