added option to exit the system with error in case there are errors in the validation result