Issues while running batch mode against historicaltimeseriesMaketdataspecification

Hi ,

I am trying to run this piece of code against a date which has no valid value in historical time series corresponding to that security.
CODE - https://gist.github.com/2963633
Result listener code - https://gist.github.com/2963647
Error - https://gist.github.com/2963621

If there are no data points for a particular date in hts , how is the situation handled ?
Also is there anyway i can see the date on the timeseries from where a particular cycle is executed from ResultListener ?

One more concern here- when i give a batch job over N number of datapoints using the code above , how will the resultListener understand the particular job has ended ? As in is there any mechanism where the resultListener is told that there are no more data points to be executed ?

Thanks
Vineeth