added optional harvestType for those with different rulesConfig.
added try-catch for script evaluation to report script errors and stop processsing.
removed redundant type added to footer string.