Preventing api-mock check break execution due to non-zero exit code