Reading this, I'm wondering what exactly is closing, and why closing something should have anything to do with a javascript UI :)