adding new option to auto clear history on exit