check for break condition earlier in generate_bell
Merge pull request #2705 from smichr/bell

check for break condition earlier in generate_bell