reorganize staging read loop, break on error at the end
Merge branch 'v1.5.1' of github:ornladios/ADIOS into v1.5.1