How to auto "Close browser on logout"