Script now actually exits on problems.