Save history across sessions. Save history after session close