after official snooker rules you don't have to pot in black ball at the end, when you lying more then seven points in front
also a foul on last black ball ends the frame
can read this here:
http://en.wikipedia.org/wiki/Rules_of_snooker#The_end_of_a_frame