Add failure_dir for copying failed files