code: private void close(ManagedConnection mc)
     {
        log.debugf("Closing managed connection for recovery (%s)", mc);
  
        if (mc != null)
        {
           try
           {
              mc.cleanup();
           }
           catch (ResourceException ire)
           {
              log.debugf("Error during recovery cleanup", ire);
           }
        }
  
        if (mc != null)
        {
           try
           {
              mc.destroy();
           }
           catch (ResourceException ire)
           {
              log.debugf("Error during recovery destroy", ire);
           }
        }
  
        // The managed connection for recovery is now gone
        recoverMC = null;
     }
docs: Close a managed connection
  @param mc The managed connection