fixed multiple missing of copying walk files

Fixed fixes:
1. Track file name setting should be proper.
2. Rsync command failure fixes.
3. unnecessary loop continuation.
4. Trap of exit command.