Properly destroy Window when closing tab, fixes regression introduced in 70a3e4016ef0a73fe01967b24c57555cbcce3d09