How to remove the annoying quit message by closing iterm2 - prevent logoff/shutdown/reboot
Under "Preferences" -> "General" -> "Closing" was a "Confirm 'Quit iTerm2' command" checkbox which worked for me. The "Profiles" -> "Session" -> "Closing" -> "Do not prompt before closing" option did not help with the shutdown case.