diff --git a/boot/cedit.c b/boot/cedit.c
index f047849e19d..7dc369008ee 100644
--- a/boot/cedit.c
+++ b/boot/cedit.c
@@ -268,6 +268,8 @@ int cedit_run(struct expo *exp)
 		}
 	} while (!exp->done);
 
+	expo_exit_mode(exp);
+
 	if (ret)
 		return log_msg_ret("end", ret);
 	if (!exp->save)
