Consider using a new, unregistered Google account. This often bypasses the COOP restriction and allows the window.closed call to execute successfully.