Leave correctly the Paper

Remove the window status change callback when the user leave the page.