Fixed closing window 0
Merge branch 'master' into xep-0223