Exit on error if flags parsing fails