This doesn't sound like proper or recommended use of Shell Executor, but here's a workaround -- in your shell script, conditionally return exit 1 (for example, on "File Not Found") and in the Shell Executor config set On Record Error to Stop Pipeline. Again, this is more of a workaround and may have other side effects.