exit with non 0 code in case of an error