bfa: check for terminated commands (bnc#906027).

suse-commit: 0853c30ce1894e8ebbeae97fa729e7282c22b18b