How to force any program to close?
The easiest solution for a program that is not responding would be:
killall firefox
and if this doesn't work
killall -9 firefox
and if this still doesn't work, reboot, nothing else will.
For other killall options, see this article on Wikipedia: Link
Check if this works
kill -9 `ps -e | grep firefox | cut -b1-6`