Turn off (shut down) your Mac
The best way to shut down your Mac is to choose Shut Down from the Apple menu .
Just as your Mac follows a startup process after it turns on, it follows a shutdown process before it turns off. That process includes automatically quitting all open apps and logging out of your macOS user account.
If your Mac doesn't shut down, try Force Quit to close any apps that aren't responding. If that doesn't work, press and hold the power button until the Mac turns off.
Press and hold the power button to turn off your Mac only if it isn't responding. You'll lose unsaved changes to any documents that you have open.
(Reserve this only for extreme cases. Hold for 20 seconds. Listen/observe for indication of being powered down. Then quick press to turn back on. -rws)