When your PC no longer reacts to input, you might be able to restart your MATE session:
If successful you should see the visual login prompt (it will automatically switch back to
After that, go back to
CTRL+ALT+F1 and log out with
exit so no one with physical access to your PC can use that session. The session will not be locked by the screen saver in your graphical MATE environment!