docs: def disconnect(service_instance):
      '''
      Function that disconnects from the vCenter server or ESXi host
  
      service_instance
          The Service Instance from which to obtain managed object references.
      '''
      log.trace('Disconnecting')
      try:
          Disconnect(service_instance)
      except vim.fault.NoPermission as exc:
          log.exception(exc)
          raise salt.exceptions.VMwareApiError(
              'Not enough permissions. Required privilege: '
              '{}'.format(exc.privilegeId))
      except vim.fault.VimFault as exc:
          log.exception(exc)
          raise salt.exceptions.VMwareApiError(exc.msg)
      except vmodl.RuntimeFault as exc:
          log.exception(exc)
          raise salt.exceptions.VMwareRuntimeError(exc.msg)