Moved the closingBytesReader to separate file