wrap copyfile in try/except