Fixes a serious bug and ensures that failing commands raise exceptions by default