Implement popup.close()