Fix PASSING when a failure occurs.

Removed here document.
Added extra checking for failure
2 jobs for fix/exit-on-failure in 215 minutes and 41 seconds (queued for 1 second)