diff --git a/src/plugins/debugger/debuggerengine.cpp b/src/plugins/debugger/debuggerengine.cpp
index 5a2e147f07a71d9282f896caf74f4809bab23aa0..6dc9c22c83cced1907468daeb67af09a379e23d0 100644
--- a/src/plugins/debugger/debuggerengine.cpp
+++ b/src/plugins/debugger/debuggerengine.cpp
@@ -728,7 +728,7 @@ void DebuggerEngine::notifyEngineRunFailed()
     d->m_progress.reportCanceled();
     d->m_progress.reportFinished();
     setState(EngineRunFailed);
-    d->queueShutdownInferior();
+    d->queueShutdownEngine();
 }
 
 void DebuggerEngine::notifyEngineRunAndInferiorRunOk()
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index 73eb4319fe964e20a4a73c8ed4d49184b5c10d51..fd9f10ef9b1e77262060d73cfe1fb593548d670e 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -188,7 +188,7 @@
 //            | (core)   | (attach)   |           |                         +
 //            |          |            |           |                         +
 //      {notify-    {notifyER&- {notifyER&-  {notify-                       +
-//      Inferior-     Inferior-   Inferior-  RunEngine-                     +
+//      Inferior-     Inferior-   Inferior-  EngineRun-                     +
 //     Unrunnable}     StopOk}     RunOk}     Failed}                       +
 //           +           +            +           +                         +
 //   InferiorUnrunnable  +     InferiorRunOk      +                         +
@@ -198,7 +198,7 @@
 //                                                 `-+-+-+-+-+-+-+-+-+-+-+>-+
 //                                                                          +
 //                                                                          +
-//                       #Interrupt@InferiorRunOk#                           +
+//                       #Interrupt@InferiorRunOk#                          +
 //                                  +                                       +
 //                          InferiorStopRequested                           +
 //  #SpontaneousStop                +                                       +