add pgd_close, match with pgd_open