using better Rcpp::stop. closes #794