Attempting to close/discard an active stream.

#6008   Run-time catchable error

Attempting to close/discard an active stream.

Additional Information

For stream 'X'.

Explanation

An active stream cannot be closed or discarded.