c lbfgs throws exception if fails