Added code for Bounded result sets and fail fast for H5
Merged code from frederik branch for Bounded result sets and fail fast for H5