code: def close(self):
          
          resource = ResourceLocator(CommandShell.ShellResource)
          resource.add_selector('ShellId', self.__shell_id)
          self.session.delete(resource)
docs: Closes pipe
          :return: