Clear history after some time of inactivity.