Updated error/success for arrays

Error and Success callbacks now only fire at the end of the processing
of an array.
Merge pull request #2 from codepb/master

Updated error/success for arrays