Updated build process templates to throw exception to stop build during failures.