* Check through all managed objects and properly refcount them
  using shared_ptr.
