stop an open Terminal from blocking overnight macOS update
The easy way to do this is to change settings and allow terminal to exit. 

Look for Ask before closing in Profiles under the Shell tab. 


select  Never




I prefer to list the processes I am willing to have killed without a dialog.  I should probably add bash and zsh to my list now that they are mixing use and not always default for me.  Another take on this list for older OS is here.