updated for version 7.0006
diff --git a/src/main.c b/src/main.c
index 5fd8339..187726a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2277,6 +2277,9 @@
 	windgoto((int)Rows - 1, 0);
 #endif
 
+#ifdef FEAT_MZSCHEME
+    mzscheme_end();
+#endif
 #ifdef FEAT_TCL
     tcl_end();
 #endif