code: def destroy(self):
          
          #: Destroy fragment
          fragment = self.fragment
          if fragment:
              #: Stop listening
              fragment.setFragmentListener(None)
  
              #: Cleanup from fragment
              if self.adapter is not None:
                  self.adapter.removeFragment(self.fragment)
  
              del self.fragment
          super(AndroidFragment, self).destroy()
docs: Custom destructor that deletes the fragment and removes
          itself from the adapter it was added to.