pages in closed pages directory and clean up files