diff --git a/src/main.c b/src/main.c
index 46c3a9608f36b12fb4abe53744acae009943d0c2..3e594598d5e3fa8013c5daad5b139b82ff6818f9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -230,6 +230,6 @@ void exit_main()
   cleanup_lpc_types();
   cleanup_shared_string_table();
   cleanup_program();
-  exit_interpreter();
+  cleanup_callbacks();
 }