Even on Console-Window closed, Save the history.