Simple fix would seem to be to add a check for an empty string as well as checking for quit in ab2tce.sh:
while [ "${command}" != "quit" ] && [ "${command}X" != "X" ]; do
If the appbrowser dies unexpectedly, ab2tce.sh knows to quit.
Also, if ab2tce.sh gets killed before one is finished with the appbrowser, the appbrowser has a heart attack (In other words: the appbrowser needs to check if ab2tce.sh is still running and if not, restart it, or at least needs a more graceful way to handle the case where ab2tce.sh dies) - Admittedly, one should not come up against this scenario very often if at all, but it's better to prepare for all possibilities.