diff --git a/src/mesh/ConnectivityComputer.cpp b/src/mesh/ConnectivityComputer.cpp
index d6a77b13e6f124b825c54cbf422567281784fb79..0dfc1de04f42a69591d128abe551ea68a59807c9 100644
--- a/src/mesh/ConnectivityComputer.cpp
+++ b/src/mesh/ConnectivityComputer.cpp
@@ -24,7 +24,7 @@ computeConnectivityMatrix(const ConnectivityType& connectivity,
   } else {
     perr() << "unable to compute connectivity "
               << itemName(item_type) << " -> " << itemName(child_item_type) << '\n';
-    std::exit(0);
+    std::terminate();
   }
 
   return item_to_child_item_matrix;