If possible, the raw pointers in the class DeviceMotionClientIOS should be turned into weak pointers.