Removed pages from previous history in case of closing