Ignore errors when copying global object