One way is to hit alt+f2, then type xkill and hit enter. Now click on the program you would like to force quit.