Automatically quit apps when their last window is closed
brew install --cask last-window-quits
last-window-quits