Close the page and release the memory after making response