Adding some exceptions to the ChunkInputStream for debugging