[CopyResourcesScript] Abort on any error

Closes #1098