'Close a stream. Typically use :py:func:`Stream.close` instead.
:param stream: An instance of the :py:class:`Stream` object.
:raises ValueError: if stream does not exist.'

def close(self, stream):

    if (stream not in self._streams):
        raise ValueError(("Stream    `%s'    not    found" % str(stream)))
    stream.close()
