cleanup file copying.