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()
You can also try to use my code below. This will also help you to redirect your parent window:
Parent:
Popup:
The window closer: