raise error when external program fails (i.e., cdk or joelib)