Also, what is the reasoning behind calling `window.close()`?