Adding rescue around copy