As suggested by 'vogelwk': Exit when the PRE command fails