Ever wonder if linux could hang? Sure it could. Especially when lacking of memory and you run some heavy programs. But usually linux still hang on in the stability in overall.
The trick is just open the terminal or another console so you can stop manually the hang process. For example you could open a console. Type this to find out what pid number that the program have. PID is process ID. All program that run have process ID.
#top
You will see list of running programs. See rigth to the left side and you will see PID columns. Remember the number then kill the process.
#kill xxxx
And that’s it. You already shut the program down.
But beware to the processes owned by user root. You may kill the system.