Return an error code if exiting due to an error 

...so that a higher-level Makefile or shell script is aware of the failure.