I think what's going on with both quit and the end of the game is that the application terminated, but in the browser version that just makes it freeze up.