Exit if a non zero status code is returned.

@SamSaffron This mainly applies to https://github.com/discourse/discourse/blob/ac72c23799a341d9fcc9ffb4c135f0a952f19428/script/bench.rb#L155.