Validator returns non-zero exit code when validation errors occur.

Resolves #115