diff --git a/matlab/CutSample.m b/matlab/CutSample.m
index 7beb9993d6856ba9b5d5b03d3ff787e63e4617cf..5caf2237dc61f5caa003318bdc3b037177ef0492 100644
--- a/matlab/CutSample.m
+++ b/matlab/CutSample.m
@@ -37,12 +37,10 @@ DirectoryName = CheckPath('metropolis',M_.dname);
 file = dir([ DirectoryName ,filesep,  M_.fname '_mh_history.mat']);
 files = dir([ DirectoryName ,filesep, M_.fname '_mh*.mat' ]);
 if ~length(files)
-    disp('MH:: FAILURE! there is no MH file to load here!')
-    return
+    error('MH:: FAILURE! there is no MH file to load here!')
 end
 if ~length(file)
-    disp('MH:: FAILURE! there is no MH-history file!')
-    return
+    error('MH:: FAILURE! there is no MH-history file!')
 else
     load([ DirectoryName '/'  M_.fname '_mh_history.mat'])
 end
diff --git a/matlab/metropolis_hastings_initialization.m b/matlab/metropolis_hastings_initialization.m
index bcbd7cac4dd5820a6e7bdb934b0e5eadee1e72bc..c196d227d4ef491c053cb85b940c6ae3107b66bb 100644
--- a/matlab/metropolis_hastings_initialization.m
+++ b/matlab/metropolis_hastings_initialization.m
@@ -221,12 +221,10 @@ elseif options_.load_mh_file && ~options_.mh_recover
     file = dir([ MhDirectoryName '/'  ModelName '_mh_history.mat' ]);
     files = dir([ MhDirectoryName filesep ModelName '_mh*.mat']);
     if ~length(files)
-        disp('MH:: FAILURE! there is no MH file to load here!')
-        return
+        error('MH:: FAILURE! there is no MH file to load here!')
     end
     if ~length(file)
-        disp('MH:: FAILURE! there is no MH-history file!')
-        return
+        error('MH:: FAILURE! there is no MH-history file!')
     else
         load([ MhDirectoryName '/'  ModelName '_mh_history.mat'])
     end
@@ -281,8 +279,7 @@ elseif options_.mh_recover
     disp(' ')
     file = dir([MhDirectoryName '/'  ModelName '_mh_history.mat']);
     if ~length(file)
-        disp('MH:: FAILURE! there is no MH-history file!')
-        return
+        error('MH:: FAILURE! there is no MH-history file!')
     else
         load([ MhDirectoryName '/'  ModelName '_mh_history.mat'])
     end