If you press (left)Alt + SysRq + K then all your processes will be killed and you will be logged out. This is useful when something goes wrong.