Catch exception if copying files fails