save mcmc results in case of crash