Fix exitHereIfFailed example, close #2086