Added support for clearing History and Cookies on exit