Automatically clear history when the app is closed
Automatically clear history when the app is closed