Chrome extension: force popup.html to close

I'm wondering is there anyway I can force popup.html to close?


Within a popup javascript:

window.close();