Automatically clear history when the app is closed
Merge branch 'clear-history'