Changed set flag to exit on all errors