clear browser history when app is closed