This is with version 0.6.5, build 431.
Incidentally, I think it is customary (well, for security reasons) in some cases for the browser to display an alert when self.close() is invoked. For instance, if you go directly to the following URL in IE, then click "Close," a warning will be displayed: