Add CMD flag to quit on error