fixed batch reader not closed warnings [Fixes #67842056]