Fix 2 file length = 0
Fix wait on close channel