only close the page if we opened one...