Also delete resources on destruction
The iterator bug strikes again. Fixed crash introduced in
28c2eacc05d4b6d404f2dc138558ca75c2dc5155 and delete the windows for real, too.