CDEC-59 : Exit with non zero value if error has occurred.