The issue is that when I invoke window.close() or self.close() it doesn\'t close the window. Now there seems to be a belief that in Chrome you can\
window.close()
self.close()
I found a new way that works for me perfetly
var win = window.open("about:blank", "_self"); win.close();