Removed the thrown exception if stream already closed.
Merge branch 'BZ908526'