Add new destruction order
Fix bug with unclosing windows