log the user out at browser-close