diff --git a/matlab/dynare_estimation.m b/matlab/dynare_estimation.m
index 7dae2b57b63cfaacef564bd15250fd34b3792d1c..8f457042fcda43c3f476e80b171622164333af9d 100644
--- a/matlab/dynare_estimation.m
+++ b/matlab/dynare_estimation.m
@@ -812,8 +812,11 @@ if (any(bayestopt_.pshape >0 ) & options_.mh_replic) | ...
if options_.mh_replic
marginal = marginal_density;
end
- %%
+ %%
GetPosteriorParametersStatistics;
+ %% Results are saved (in case of an anormal exit from dynare or matlab)...
+ save([fname_ 'results'],oo_);
+ %%
PlotPosteriorDistributions;
metropolis_draw(1);
if options_.bayesian_irf