Add demo: how to bind event when browser window close.