Any way to log off or close apps when time limits run out

You can log out an account after so many minutes via the Security and Privacy preference:

Apple Icon > System Preferences > Security & Privacy > Advanced button and then set the Log out after minutes of inactivity to a low number. This closes all the Apps on my Mac and logs me off completely for more security.

enter image description here