windowMenu: Fix typo

Closing windows is done with delete(), not close() ...