Remove window even if closing promise rejects

The closing promise rejects when the window is already closed.
In this case we still want to remove the window.

Bug: T76659
Change-Id: Idc87ae6089fa5521d36c20251f4ca54a2257b0ab
Merge "Remove window even if closing promise rejects"