You should always disable any resident AV scanning prior to defragmenting; then re-enable scanning after.