Also return the exit code and the success flag.