handle cholesky error