Exit when there is an error, use cerr when there is an error