- Prevents showing an error if someone tries to close a window with shortcut key if there is no window opened in macOS