Add optional exit status reporting

It can be very useful to know the exit status of the utility,
particularly when running tap-style unit tests, where failure is
indicated by a non-zero exit status.