diff --git a/src/util/se_util.hpp b/src/util/se_util.hpp
index 4745a826bfc32194faae4ba9895abd3eab218a34..5be52d86a7bb2e52090e75e08b7e674ceec29d03 100644
--- a/src/util/se_util.hpp
+++ b/src/util/se_util.hpp
@@ -12,7 +12,7 @@
 
 // Macro that decide what to do in case of error
 #ifdef STOP_ON_ERROR
-#define ACTION_ON_ERROR(error) print_stack();exit(1);
+#define ACTION_ON_ERROR(error) print_stack();abort();
 #define THROW noexcept(true)
 #elif defined(THROW_ON_ERROR)
 #define ACTION_ON_ERROR(error) if (!std::uncaught_exception()) {print_stack();throw error;}