for Windows platform.
chank file is closed  before changing a file name.
It changes, in order that copy_stream may not operate correctly.