kill should work, else you have a Zombie. and THAT is a SERIOUS bug.
in a console do:
sudo su (enter)
ps -aux (enter)
kill -9 123 456 789 (enter)
in the above the 123 456 789 are the (in this case 3) pid's of anything shown in ps -aux to have relation with your program.