I have been looking around, but am unable to close the popup programmatically.
The following code does not seem to work.
tinyMCEPopup.close()
TypeError: Cannot read property 'windowManager' of undefined
note: I am running this in chrome console, it might running in the scope of window.top