Exit with code 1 in case of error for `docker build`