Prevent the chunkThread from leaking