Added log cleanup to CopyToStaging