There are actually two issues here, one is with the pen tablet. Have you tried to unplug everything from the Mac besides the kbd and the mouse, then reboot your Mac? The other issue is with the applications, if all your applications quit on you, you might want to backup all your works and reinstall the OS. If that still doesn't work, it is possible that it's a hardware issue with one of the ram chip.