actually i guess i should tell you the other way of doing this, cause sometimes its not as easy as just typing the programs name, so the other way would be the following:
login as root
type --> ps -aux|more
look for the program in the last column (command column)
when you locate it, note the PID (PID (2nd)column)
when you find the PID:
type --> kill PID (where PID is the number you noted)
ctrl-f7 to go back to X.