properly exit on validation error if validation is set to strict