close popup window from popup.postMessageHandler