clearing session after indexing batch of observations