def __exit__ ( self , * exc_info ) : self . _loop . create_task ( self . _close ( Client . CLOSED , True ) )
python threading exit handler
Close connection to NATS when used in a context manager
def __exit__(self, *exc_info):
        """Close connection to NATS when used in a context manager"""

        self._loop.create_task(self._close(Client.CLOSED, True))