Use exit() function to report input validation errors instead of the log package