Just a comment:
I never see any web application will "Close" the browser. Maybe because browser is not part of the program actually, so we should not close the browser, except there is a sub window...
For example: you login Yahoo mail and check your mail, after logoff, you expect Yahoo to close the browser for you? How if user want to use this browser for other thing?