Script now exits on error