code: def close(self):
          
  
          try:
              self._loop.run_coroutine(self.adapter.stop())
          finally:
              self._save_recording()
docs: Close this adapter stream.
  
          This method may only be called once in the lifetime of an
          AdapterStream and it will shutdown the underlying device adapter,
          disconnect all devices and stop all background activity.
  
          If this stream is configured to save a record of all RPCs, the RPCs
          will be logged to a file at this point.