Provide an exit error code more consistently when there is a problem