Make sure to clean up the restClient in the document sync manager dealloc.