def close(self):
        """
        Close service client and its plugins.
        """
        self._execute_plugin_hooks_sync(hook='close')

        if not self.session.closed:
            ensure_future(self.session.close(), loop=self.loop)
def close ( self ) : self . _execute_plugin_hooks_sync ( hook = 'close' ) if not self . session . closed : ensure_future ( self . session . close ( ) , loop = self . loop )
Close service client and its plugins.