in the middle of implementing Exit and Wait. But this is broken. There is some error in remove_page.