code: async def shutdown(self):
          
  
          if self.log_output:
              logging.info('Shutting down ...')
          else:
              print('Shutting down ...')
  
          await self.send_reset()
  
          try:
              self.loop.stop()
          except:
              pass
          try:
              self.loop.close()
          except:
              pass
          sys.exit(0)
docs: This method attempts an orderly shutdown
          If any exceptions are thrown, just ignore them.
  
          :returns: No return value