Cancel and destroy the stream and suppress all further handler calls.
The adapter's own listeners stay attached on purpose: removing the
error listener from a stream that is then cancelled would turn the
resulting CANCELLED error event into an uncaught exception.
Cancel and destroy the stream and suppress all further handler calls. The adapter's own listeners stay attached on purpose: removing the
errorlistener from a stream that is then cancelled would turn the resulting CANCELLEDerrorevent into an uncaught exception.