https://superuser.com/questions/1293690/is-there-a-way-to-restart-mac-without-reopen-all-apps-via-terminal