Abort if a script fails to execute, and exit with the exit code of the process, fixes #1943