Properly recognize when a script fails with an exit code and handle when the failing log does not have a message