Keep the last opened tab when TTool is closing

Keep the last opened tab to restaure it when the project is re-opened.