Quit app on non-Mac operating systems when no windows are open
Remove an unnecessary check