diff --git a/spring-shell-core/src/main/java/org/springframework/shell/Shell.java b/spring-shell-core/src/main/java/org/springframework/shell/Shell.java index fd73323e..a123dc9d 100644 --- a/spring-shell-core/src/main/java/org/springframework/shell/Shell.java +++ b/spring-shell-core/src/main/java/org/springframework/shell/Shell.java @@ -265,7 +265,7 @@ public class Shell { finally { Signals.unregister("INT", sh); } - if (e != null) { + if (e != null && !(e instanceof ExitRequest)) { try { CommandHandlingResult processException = processException(commandExceptionResolvers, e); processExceptionNonInt = processException;