Fixed 'Select Window' failing, when the current window is already
closed. See #48