defaults write com.apple.finder QuitMenuItem -bool YES
起動して、Command-Qで終了すればOK
shellで以下を実行する。
defaults write com.apple.finder QuitMenuItem -bool NO