Clear browser history on close