Exit generate.sh if markdown fails