ah I just removed the `setTimeout` since the added `close(window)` should be enough